package cn.ztydata.teachingsystem.heaven.web.dto;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.sql.Date;
import java.util.List;

/**
 * 章节资源dto类
 * Created by chenxin on 2014/12/17.
 */
public class ChapterRscDto {
    @NotNull
    @Min(value = 1, message = "资源ID不合法")
    private Long rscId; //资源ID
    @NotNull
    @Min(value = 1, message = "节点ID不合法")
    private Long nodeId; //节点ID

    private String name; //资源名称
    private String author; //作者
    private String type; //资源类型
    private String suffix; //媒体类型
    private Date date; //上传日期
    private Integer size; //资源大小
    private String downloadUrl; //下载地址

    private List<KpDto> knowledge; //资源知识点

    public Long getRscId() {
        return rscId;
    }

    public void setRscId(Long rscId) {
        this.rscId = rscId;
    }

    public Long getNodeId() {
        return nodeId;
    }

    public void setNodeId(Long nodeId) {
        this.nodeId = nodeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getDownloadUrl() {
        return downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public List<KpDto> getKnowledge() {
        return knowledge;
    }

    public void setKnowledge(List<KpDto> knowledge) {
        this.knowledge = knowledge;
    }
}
